package com.biz.primus.ms.oms.dao.po;

import com.biz.primus.model.oms.enums.OrderInterceptPropertyName;
import com.biz.primus.model.oms.enums.OrderInterceptType;
import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Data;
import javax.persistence.*;

/**
 * 订单拦截
 */
@Data
@Entity
@Table(name = "oms_order_intercept")
public class OrderIntercept extends BaseEntity{


    /**
     * 拦截类型
     */
    @Enumerated(EnumType.STRING)
    private OrderInterceptType orderInterceptType;

    /**
     * 启用状态
     */
    private boolean state;

    /**
     * 属性名
     */
    @Column(length = 50)
    private OrderInterceptPropertyName propertyName;

    /**
     * 属性值
     */
    @Column(length = 50)
    private String propertyValue;
}
